home *** CD-ROM | disk | FTP | other *** search
/ Inside Mac Games Volume 4 #9 / IMG 40 Sep 1996.iso / More Goodies / More for Your Game / Escape Velocity / EV Utilities / EVBible / EVBible.rsrc / TEXT_133.txt < prev    next >
Text File  |  1996-08-05  |  3KB  |  37 lines

  1. ‚Ä¢ The d√ºde resource
  2.     A dude resource can be thought of as a container for ships that share certain characteristics. Any ship of a given dude class will have that dude class's AI type and governmental affiliation, and will yeild the same types of booty when boarded. In a dude resource, up to four different ship classes can be pointed to, with a probability set for each ship class. The result of all this is that, in other parts of EV's data file, you can point to a dude class and know that EV will create a ship of the proper AI type and governmental alignment, and will pick the new ship's type based on the probabilities you set in the dude resource. The dude resource's fields are:
  3.  
  4. AIType    Which type of AI to use for ships of this dude class (see below)
  5. ShipTypes (x4)    These fields contain the ID numbers of up to four different ship classes
  6. % Prob (x4)    These fields set the probability that a ship of this dude class will be of a certain ship type
  7. Govt    The ID number of the dude class's government, or -1 for independent.
  8. Booty    Flags that define what you'll get when you board a ship of this dude class. (see below)
  9.  
  10. The five different AI types are:
  11.  
  12. 1 - Wimpy Trader    Visits planets and runs away when attacked
  13. 2 - Brave Trader    Visits planets and fights back when attacked, but runs away when his attacker is out of range
  14. 3 - Warship    Seeks out and attacks his enemies, or jumps out if there aren't any.
  15. 4 - Interceptor    Seeks out his enemies, or parks in orbit around a planet if he can't find any. Buzzes incoming ships to scan them for illegal cargo. Also acts as "piracy police" by attacking any ship that fires on or attempts to board another, non-enemy ship while the interceptor is watching.
  16. 5 - Naval Fighter    Carried by another ship. Reserved for internal use - do not use!
  17. 6 - Escort    Flies with the player. Reserved for internal use - do not use!
  18.  
  19. You can set different combinations of booty to be had from ships of a certain dude class by ORing different bits into the dude's Booty field. If a dude class has a booty flag of 0x0000, then you can't get anything from the ship, and you're told that you were "repelled while attempting to board" it. The different booty flags are:
  20.  
  21. 0x0001    Food
  22. 0x0002    Industrial goods
  23. 0x0004    Medical supplies
  24. 0x0008    Luxury goods
  25. 0x0010    Metal
  26. 0x0020    Equipment
  27. 0x0040    Money (depends on the ship's purchase price)
  28.  
  29. The last field tells EV what kind of text to display when you hail a ship of this dude type and send a greeting: (note that these values can be added together to have EV display multiple different types of information)
  30.  
  31. InfoTypes    What kind of info to display
  32.     1000    Good prices
  33.     2000    Disaster info
  34.     4xxx    Specific advice (the last three digits of this value are added to 7500 to get the ID of the STR# resource from which to get the quote)
  35.  
  36. One thing to remember when setting up a dude resource is that EV will choke if any of the ShipType fields are filled incorrectly (i.e. less that 128 or greater than 159) or any of the probabilities are not between 1 and 100. Therefore, if you want a dude type to point to only one ship class, you'd set all four ShipType fields the same and put 25% in each Prob field. (see the "Confed Liner Only" dude class for an example of this)
  37.